Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow generic tabular and image features #649

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

AhmetNSimsek
Copy link
Collaborator

This PR adds the ability to digest more generic type of features so that one is not restricted with predetermined modalities. This means that such features will not necessarily reach their full potential (make use of the flexibility of modality per class design) but it allows for a quick data integration and using own data quickly.

  • Should we add generic...
    • cortical profile?
    • regional connectivity?
    • regional time series activity?
  • allow repository connectors and csv decoders?

Test json example

{
	"@type": "siibra/feature/tabular/v0.1",
	"region": "Area 7A (SPL)",
	"modality": "any modality",
	"description": "this describes the feature",
	"species": "Homo sapiens",
	"file": "https://object.cscs.ch/v1/AUTH_227176556f3c4bb38df9feea4b91200c/hbp-d000045_receptors-human-7A_pub/v1.0/7A_pr_examples/5-HT1A/7A_pr_5-HT1A.tsv"
}

To do:

  • add tests
  • investigate if it must take a name parameter?
  • test plot functions
  • update "work with your own data" section in docs for how to utilise generic features

Copy link

codecov bot commented Mar 13, 2025

Codecov Report

Attention: Patch coverage is 35.00000% with 26 lines in your changes missing coverage. Please review.

Project coverage is 47.99%. Comparing base (379bda2) to head (1ec7382).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
siibra/livequeries/allen.py 5.88% 16 Missing ⚠️
siibra/features/feature.py 28.57% 5 Missing ⚠️
siibra/configuration/factory.py 62.50% 3 Missing ⚠️
siibra/features/tabular/tabular.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #649      +/-   ##
==========================================
- Coverage   47.99%   47.99%   -0.01%     
==========================================
  Files          71       71              
  Lines        7296     7315      +19     
==========================================
+ Hits         3502     3511       +9     
- Misses       3794     3804      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant